﻿using UnityEngine;
using System.Collections;

public class Mover : MonoBehaviour {
    Rigidbody rb;

	// Use this for initialization
	void Start () {
        rb = gameObject.GetComponent<Rigidbody>();
       
	}

    // Update is called once per frame
    void Update() {
        transform.Translate(new Vector3(0, 0, 0.3f));
        if (gameObject.transform.position.z > 8 )
            Destroy(gameObject);
     
	}
}
